<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %> 
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
	<title>人员信息导出</title>
	<meta http-equiv="Content-Type" content="application/msword; charset=utf-8" />
	<style type="text/css">
 		table{border-right:1px solid gray;border-bottom:1px solid gray}  
 		table td{border-left:1px solid gray;border-top:1px solid gray}  
	</style>
  </head>
  <%response.setHeader("Content-disposition","attachment; filename=employee_list.xls");%>
  <body >
    <table width="100%">
	    <tr>
		    <td>编号:</td>
		    <td>姓名:</td>
		    <td>性别:</td>
		    <td>单位:</td>
		    <td>区域:</td>
		    <td>证件类型:</td>
		    <td>证件号码:</td>
		    <td>级别:</td>
		    <td>记录位置:</td>
		    <td>创建时间:</td>
		    <td>创建人:</td>
		    <td>最后修改时间:</td>
		    <td>最后修改人:</td>
	    </tr>
	    <s:if test="employeeList!=null">
		  	<s:iterator value="employeeList" id="ins" status="item">
			    <tr>
				    <td><s:property value="#item.index+1" /></td>
				    <td><s:property value="#ins.name" /></td>
				    <td><s:if test="#ins.gender==1">男</s:if><s:else>女</s:else></td>
				    <td><s:property value="#ins.company" /></td>
				    <td><s:property value="#ins.regionId" /></td>
				    <td><s:if test="#ins.cardType==1">身份证</s:if><s:else>军官证</s:else></td>
				    <td><s:property value="#ins.cardNo" /></td>
				    <td><s:property value="#ins.level" /></td>
				    <td><s:if test="#ins.recordPosition==1">是</s:if><s:else>否</s:else></td>
				    <td><s:property value="#ins.createTime" /></td>
				    <td><s:property value="#ins.createUser" /></td>
				    <td><s:property value="#ins.updateTime" /></td>
				    <td><s:property value="#ins.updateUser" /></td>
			    </tr>
		    </s:iterator>
	    </s:if>
	  </table>
  </body>
</html>
